<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>资源库日志查询</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="${pageContext.request.contextPath }/scripts/boot.js" type="text/javascript"></script>
<style type="text/css">
html,body {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
</style>
</head>
<body>
<div style="width:100%;">
  <div class="mini-toolbar" style="border-bottom:0;padding:0px;">
    <table style="border:solid 1px #aaa;width:100%;">
      <tr>
        <td style="width:5%;text-align:left;">操作人:</td>
        <td style="width:10%;"><input name="userid" class="mini-textbox" maxLength="10" emptyText="请输入操作人" onenter="onKeyEnter" /></td>
        <td style="width:9%;text-align:right">日志类型：</td>
		<td style="width:15%"><input name="log_type" class="mini-combobox" valueField="id" textField="name" emptyText="请输入日志类型"
							url="${pageContext.request.contextPath}/AC01.do?method=getltAC01&lx=TYPE"
							vtype="maxLength:25" onenter="onKeyEnter" /></td>
		<td style="width:9%;text-align:right">操作渠道：</td>
		<td style="width:15%"><input name="czqd" class="mini-combobox" valueField="id" textField="name" emptyText="请输入操作渠道"
							url="${pageContext.request.contextPath}/AC01.do?method=getltAC01&lx=CZQD"
							vtype="maxLength:25" onenter="onKeyEnter" /></td>
		<td style="width:9%;text-align:right">操作人类别：</td>
		<td style="width:15%"><input name="czrlb" class="mini-combobox" valueField="id" textField="name" emptyText="请输入操作人类别"
							url="${pageContext.request.contextPath}/AC01.do?method=getltAC01&lx=CZRLB"
							vtype="maxLength:25" onenter="onKeyEnter" /></td>
        <td style="width:15%;text-align: center; white-space:nowrap;">
          <a class="mini-button" iconCls="icon-search" onclick="search()">查询</a>
          <a class="mini-button" iconCls="icon-remove"  onclick="onReset()">重置</a>
        </td>
      </tr>
    </table>
  </div>
</div>
<div style="width:100%;">
  <div class="mini-toolbar" style="border-bottom:0;padding:0px;"></div>
</div>
<div class="mini-fit">
  <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" allowResize="true"
       url="${pageContext.request.contextPath }/AC01.do?method=getTAC01" idField="id" >
    <div property="columns">
      <div type="indexcolumn" ></div>	
      <div field="domainid" width="120" headerAlign="center" allowSort="true">分系统标识</div>
      <div field="log_type" width="120" headerAlign="center" allowSort="true">日志类型</div>
      <div field="userid" width="120" headerAlign="center" allowSort="true">操作人</div>
      <div field="rwh" width="120" headerAlign="center" allowSort="true">任务号</div>
      <div field="content" width="120" headerAlign="center" allowSort="true" >操作明细</div>
      <div field="ip_address" width="120" headerAlign="center" allowSort="true" >IP地址</div>
      <div field="browser" width="120" headerAlign="center" allowSort="true" >浏览器类型</div>
      <div field="open_time" width="120" headerAlign="center" allowSort="true" dateFormat="yyyy-MM-dd HH:mm:ss">操作时间</div>
      <div field="datain" width="120" headerAlign="center" allowSort="true">输入信息</div>
      <div field="dataout" width="120" headerAlign="center" allowSort="true">输出信息</div>
      <div field="czqd" width="120" headerAlign="center" allowSort="true">操作渠道</div>
      <div field="czrlb" width="120" headerAlign="center" allowSort="true">操作人类别</div>
    </div> 
  </div>
</div>
<script type="text/javascript">
    mini.parse();
    var grid = mini.get("datagrid1");
    grid.load();
    function search() {
      var log_type = mini.getbyName("log_type").getValue().trim();
      var userid = mini.getbyName("userid").getValue().trim();
      var czqd = mini.getbyName("czqd").getValue().trim();
      var czrlb = mini.getbyName("czrlb").getValue().trim();
      if (log_type == "" && userid=="" && czqd=="" && czrlb=="") {
         mini.alert("请输入查询条件");
      }
      grid.load({ log_type: log_type,userid:userid,czqd:czqd,czrlb:czrlb});
      }
    function onKeyEnter(e) {
      search();
    }
    function onReset(e) {
      mini.getbyName("log_type").setValue("");
      mini.getbyName("userid").setValue("");
      mini.getbyName("czqd").setValue("");
      mini.getbyName("czrlb").setValue("");
    }
    
</script>
</body>
</html>
